package com.zycx.system.menu.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * Description:  菜单
 * Created by zycx on 2018-12-10 21:30
 * Created with IntelliJ IDEA.
 */
@Data
@Table(name = "t_sys_menu")
public class Menu implements Serializable {

    /**
     * 主键
     */
    @Id
    private String id;

    /**
     * 菜单名称
     */
    @Column(name = "menu_name")
    private String menuName;

    /**
     * 菜单图标
     */
    @Column(name = "menu_icon")
    private String menuIcon;

    /**
     * 父节点id
     */
    @Column(name = "parent_id")
    private String parentId;

    /**
     * 排序
     */
    @Column(name = "menu_sort")
    private Integer menuSort;

    /**
     * 菜单对应地址
     */
    @Column(name = "menu_url")
    private String menuUrl;

    /**
     * 是否启用
     */
    @Column(name = "enable")
    private Boolean enable;

    /**
     * 创建时间
     */
    @Column(name = "ctr_time")
    private Date ctrTime;

    @Column(name = "ctr_user_id")
    private String ctr_user_id;

    @Column(name = "ctr_user_name")
    private String ctrUserName;

    /**
     * 更新时间
     */
    @Column(name = "up_time")
    private Date upTime;

    @Column(name = "up_user_id")
    private String upUserId;

    @Column(name = "up_user_name")
    private String upUserName;

}
